package com.xyzwps.mvckotlin.dao.mapper;

import com.xyzwps.mvckotlin.dao.model.InvitationCode
import org.apache.ibatis.annotations.Mapper;

@Mapper
interface IInvitationCodeMapper {

    fun getUnusedByCode(code: String): InvitationCode?

    fun markAsUsed(code: String)

    fun countUnusedCode(): Int
}
